package com.user.controller;

import com.apis.user.UserFanApi;
import com.user.service.UserFanService;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.user.dtos.UserRelationDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/user/api/v1/userfan")
@RestController
public class ApUserFanController implements UserFanApi {

    @Autowired
    private UserFanService userFanService;

    @PostMapping("Fan")
    @Override
    public ResponseResult fan(@RequestBody UserRelationDto dto) {
        return userFanService.fan(dto);
    }
}
